﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GcmpCollaborationInterface.h"
#include "ICollaborationProjectConfiguration.h"
#include "GbmpGuid.h"
#include "GbmpQuickCast.h"
#include <vector>

namespace gcmp
{
    class ICollaborationSpaceConfigurationItem;

    /// \brief 协同工程空间配置
    class GCMP_COLLABORATION_INTERFACE_EXPORT ICollaborationSpaceConfiguration : public ICollaborationProjectConfiguration
    {
        DEFINE_CAST_DERIVED(gcmp::ICollaborationSpaceConfiguration, gcmp::ICollaborationProjectConfiguration)
    public:
        /// \brief 给定Id，获取配置项
        /// \param guid 配置项的Id
        /// \return const ICollaborationSpaceConfigurationItem * 配置项
        /// \see ICollaborationSpaceConfigurationItem
        virtual const ICollaborationSpaceConfigurationItem * GetConfigurationItem(const std::wstring& id) const = 0;

        /// \brief 获取顶层的所有配置项
        /// \return 配置项列表
        /// \see std::vector<const ICollaborationSpaceConfigurationItem*> ICollaborationSpaceConfigurationItem
        virtual std::vector<const ICollaborationSpaceConfigurationItem*> GetFirstLevelConfigurationItems() const = 0;

        /// \brief 析构函数
        virtual ~ICollaborationSpaceConfiguration();
    };
}
